GtkListBox: Allow a NULL callback in bind_model
authorTimm Bäder <mail@baedert.org>
Tue, 1 Sep 2015 08:41:42 +0000 (10:41 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 3 Sep 2015 14:12:15 +0000 (16:12 +0200)
When unsetting the bound model, one can pass NULL, but in that case the
create_func parameter should also be NULL.

gtk/gtklistbox.c

index fd91acfbea4895ec9eaaf667a0c150ae425c257e..01a0f4df91d62cfa9cce18cf931e36da4d9a6ef0 100644 (file)
@@ -3752,8 +3752,9 @@ gtk_list_box_check_model_compat (GtkListBox *box)
 /**
  * gtk_list_box_bind_model:
  * @box: a #GtkListBox
- * @model: (allow-none): the #GListModel to be bound to @box
- * @create_widget_func: a function that creates widgets for items
+ * @model: (nullable): the #GListModel to be bound to @box
+ * @create_widget_func: (nullable): a function that creates widgets for items
+ *   or %NULL in case you also passed %NULL as @model
  * @user_data: user data passed to @create_widget_func
  * @user_data_free_func: function for freeing @user_data
  *